/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.softwareprinciples.srp.violate.Impl;

import za.ac.cput.softwareprinciples.srp.violate.Disk;

/**
 *
 * @author Abduraghmaan
 */
public class DiskImplViolate implements Disk {
    private String type;
    private String staffName;
    private double salary;


    @Override
    public double getSalary() {
        return salary;
    }

    @Override
    public void setSalary(double salary) {
        this.salary = salary;
    }
   

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public void setType(String type) {
        this.type = type;
    }
    

    @Override
    public int determineSize()
    {
        int size = 0;
        
       if(type.equals("CD"))
           size = 700;
       else
           if(type.equals("DVD"))
               size = 4700;
       
       return size;
    }
    
    @Override
    public double calcSalary()
    {
        salary = salary - (salary * 0.14);
        
        return salary;
        
    }
    
}
